import { AjaxCommon } from "@/libs/apiCommon";

/**
 * 申办方信息相关接口
 */
export class sponsorInformation {
  /**
   * 新增申办方
   * @param {*} dataParams
   * @returns
   */
  static addData = (dataParams) => {
    return AjaxCommon("/ccdc/cfg/pm/pmSponsor/add", "post", dataParams);
  };

  /**
   * 编辑申办方
   * @param {*} dataParams
   * @returns
   */
  static editData = (dataParams) => {
    return AjaxCommon("/ccdc/cfg/pm/pmSponsor/edit", "post", dataParams);
  };

  /**
   * 删除申办方
   * @param {*} id
   * @returns
   */
  static deleteData = (id) => {
    return AjaxCommon("/ccdc/cfg/pm/pmSponsor/delete?id=" + id, "get");
  };

  /**
   * 查询申办方
   * @param {*} pageNo 当前页
   * @param {*} pageSize 一页多少条数据
   * @param {*} pmName
   * @param {*} userName
   * @returns
   */
  static getData = (pageNo, pageSize, pmName, userName) => {
    return AjaxCommon("/ccdc/cfg/pm/pmSponsor/listByPage", "post", {
      pageNo,
      pageSize,
      pmName,
      userName,
    });
  };
}
